package org.darcy.youchat.activity.discovery;

import android.view.MenuItem;

import org.darcy.youchat.R;
import org.darcy.youchat.activity.BaseActivity;
import org.darcy.youchat.databinding.ActivityFriendsCirclePrivacySetBinding;

/**
 * 朋友圈权限设置
 */
public class FriendCirclePrivacySetActivity extends BaseActivity {

    @Override
    public void initView() {
        ActivityFriendsCirclePrivacySetBinding binding = ActivityFriendsCirclePrivacySetBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        setSupportActionBar(binding.mToolbar.toolbar);
        String titleName = "朋友圈";
        getSupportActionBar().setTitle(titleName);
        binding.mToolbar.toolbar.setNavigationIcon(R.mipmap.ic_back);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            finish();
        }
        return super.onOptionsItemSelected(item);
    }
}
